add open file function