add mw.log messages for debugging with ?debug=true