script now hackily parses file