minor bug fixes
paper is finished