file open fixes