removed frontend stuff since this will be a json REST service