allow getting file contents without saving