importing v4 from Sam Hare's website