make index route configurable. added logger