modified for RESTful urls