disable some unused middleware