more debug
handle cordova devicereadyness