add_extension now compatible with 3.1
Merge pull request #4 from g4b0/ss310-g4b0-addition

add_extension now compatible with 3.1