extract default and template commands to separate files