added (partial)support for random responses