periodical ap scan
environment manages state machine