improve minor performance
prepare language files
fix resource file
fix prority max value
fix restart issue