revamped spawn process