modify mmacs, correct a mistake in acs and improved settings.py and baco