tidied up RESTful routing