change endpoints to accept strings not integers