moving registration-related code to largo-extended plugin