nuke old code
add log_if
fixed obvious bug ...
updated submodules