externalising api path