moved registry to api