second refactoring & multithreading support & volume terrain test