add middleware, file loader, reprs