fix for annotation based config