added file_exists for read()