added createfilelist() and closefilelist()