added line numbers to the debug messages