updated cloud handler.