simplified, can print in server, need to send JSON back