fix to get correct host