localization, some minor improvements, mod compatibility