optimize map ground render and normalize line endings
merge changes