addition of file reader to cordscript