made the implementation of GetCommandParameter more upkeepable