add optimist as dependency