experiments with timeouts (not working very well under Windows :(