latest changes to allow the phonegapp project read from sd card