move extend out of prototype
v0.0.8