ensure static files and templates are read correctly