added register/fixed problems with spring