change to debug mode and fix bugs