fixed backend, custom solution is a success, now to deal with JSON