fix connector to return promise