fix fugu run issues and improve fugu exec