adding support for raw multi table input and output