add aeson and json conversion on the server side