added register_extension method to make config of new extensions easier