build state manager