added safe mode

Doing shit for commy again.