simplify command parsing