added extensions for read and write file