added framework for final two phonegap things