added support for custom parsers

tested with custom array parser