Code

fixes to make registration work again