increase MAX_SESSION_TEMPLATES to 10000