fixed a logic error in RestfulModel generation
save point for customers
moving to laptop