changed exec to spawn, becuase of stdout size limit