allow to set base_template via hooks