remove all middleware dependencies