filter headers before setting new ones; added 10 timeout_count for proxy server