error handling in cloud impl