remove admin and other unneeded middleware