fixed Registration scripts and other errors