better method for defaulting safe-mode
tests for w values