open file in write-plus
clean up prof parsing code