removed optimist dependency