code cleanup + dev mode
extract h42 related stuff to its own object