wait for deviceready