use before_configuration hook