incapsulating cloud specific code into Engine