worked around the need of trailing slashes in API calls