first draft for REST