fix registration and capfile for production