add support for array as input object