added npr api, fixed routes.