fix routing and cdn stuff