added some more logging and removed jquery metadevice