handle static resources