restrict hash map to encoder