add 3 point support (closes #2)