initial registration logic