got init state changes to work