implemented profile, fixed error-bug registration