previous commit works; now I add modes (stap or pipeline)