adding state manager
adding state manager