got a working rest implementation going