implemented dynamic state handlers