fix the registration and using the http api for backend access