Store host_id in file