fixes to registration