remove spawn option
modify to send logs in stderr