add namespace to api to prevent circular dependency