add debug messages to date type