added file_exists to app folder