added further debug messages