handling static resources