added parameters to API routes