fix duplicate wsgi logging
fix bugs