added option for silent run (for scripts)