started to write the state_machine for ram_manager