support for different types in @attributes array