refactored fugu exec