change child process invoke method to spawn