first command parsing