fixed issues with unit system and uninitialized oauth stuff

closes #212