add logic that works on small and large files with default VM arguments.