fixed register. try to understand why save does not work on connect