use hash map for codepointers
Merge pull request #20 from Ceasar/fix-catalogs

use hash map for codepointers