more fixes for register
more fixes for register