add create_logs middleware to receiver/client