starting work on a state controller