move code up for mobile state 2