add line numbers to abox and script for better error messages