added -H --host custom API host flag and vars