added randomized delay and message dropping