fix preexec func calls