getting messy with debug messages