add semantic configuration reference, resolve some bugs