fixes to cloud init