What are the job functions of the department of state and the department of the treasury?