add support for nil schema