upto line 214

this is a very sloppy script to work on