fix conf
add test
fix core