parsing input, left: actions and action parameters