finally got headers on server response working