automatically detect and install embedded language files; code cleanup