do not open file twice