add halt type
fix leak
fix warnings
add bloom based routing