set default extensions when using in module and not as script