added new helper to neaten up calling api endpoints