vector graphic stuff I should commit before I forget how I did this