added skipEvents commandline option