move consul api out
fix import
add new deps