- added map distance option in settings
- auto code optimization