make n, w and timeout configurable