add register method for extension