fix bug with forked optimizer process, now a singleton