added support for line numbers in the input file