add static middleware