add staticweb middleware option