make timeout configurable (fixes #29)