add optimist dependency