app: refactoring sammy registration