updated middleware caller methods