only open once a file