removed Optimist dependency