added debugging to log() and con()