registration script progress, functions added