custom main router config