updated for local ajax test on device