make session creation from a template work again