updated spawn snippet and highlighting