file existence and timestamp check before fetching