bugfix: defaults.WAIT_TIME was not actually taken into account