try to use fork to do spawning