fix merge conflicts, the pins are defined as part of the module
fix typo
correct pin for insertion check and return correct value (I should have merged these from the experiments branch already...)
TODO done
fix merge conflicts