refactoring dir org
rm unused middleware