fixing restful magic