do not crash when attributes are not present; replace by defaults instead