refactor + controller for static files