add delay parameter

allow to introduce artificial latency