made filereader common loader for files.