added registration

Yes, the complete files inst_autosetup and inst_autosetup_upgrade should be refactored because there is a lot of duplicate code here.