added removeHeader to api as a complement to addHeader