made user class and token class configurable