update: solved the issue for size limitation of stat()