various minor fixes, config, terrain.