define routes handlers by string for caching and storing stucture in array