use new method to configure dao