some debug messages to track where is the problem