add instructions and route the endpoints properly