cleaned up mouse detection; switched json readers