passing configuration to command functions