added function for checking linenumber status, ref #439