optimize request route logic