Better way how to deal with required extensions