change mechanism of reading files with parameters