fixed connection. renamed conf.debug to conf.isDebug