turn registration into go routine