bugfix for change file_exits to file system function