allow patch request
Merge pull request #2 from preo/extend

make some things protected so we can extend the class