some debug code cleaned out