A bunch of notes to myself.
fix type compilation error