complete fork and exec part