made the server more rest friendly