attempt to fix missing phonegap callbacks