added debugging console