added middleware for ironmq object