set static middleware before running plugins operations on express app