move file openers to util