fix variable name and config import and compile