make routes RESTful - fixes #16