new event + improvement handle static files