better file opening