cloudinit functions