BUG: changed debug mode to 0