check statsfile is empty or not & modify source code path