updated to accept JSON on /press