add support for tables with user defined schemas