added code to read schemas from files