resolves #224 set attributes based on safe mode