move driver declaration out to helper