refactor linking of static files