fix debug mode, use correct host