swtiched to debug mode