added support for HASH and ARRAY