debug middleware
remove debug