commandline: added timeout option (does it work on windows?)