accidently checked in debug code (redmine #1835)