move registration to separate package