cloud's middleware