updating middleman compatability