[refactor] clean up file loading in main route because OCD