directconnetion: take const string & instead of const char *