add another resource
generic implementation of generate-bidi-routes
fix minor