fixed mac/linux handling, fixed patch vertex plotting