add source line comment and output error file to make debuging present error possible