debug flags
module logging added