allow setting timeout