fix registration and deploy