added some debugging messages to attributes