add attributes support for nil/array