removed trailing slash causing problems in api endpoint