better error on server side
still fixing json keys for advance optim of gclosure