initial helper for optional host_directory