command simplification and fixes after a resource rework
- associating commands defined at one place, included into commands as modules
- resources can be defined in encapsulating commands
added missing parenthesis