Added patches on fly for dofile function & I/O module.

Added patches on fly for dofile function & I/O module.