resolves #244 set attributes based on safe mode