(#120) patched run_local to respect prefixes