moving function from core to different files (request.clj)