fix autolevelmanager merge and update build script