making getHeaders return a unmodifiable map