fix const correctness for getIMPL