fixing asynchornous system call issues with exec