add schema lookup code