exec is async, fix flow