removing old debug(). Soon to remove error()