switch all addObserver calls to then function
Add pathForType to convert camels to snakes