few lines to replace basic functionality of cloud_init