extensions

Thanks for the library! I have some use cases that require some low end fiddling about, so I forked and added what I needed. Just creating this PR to make those changes available to you if you like them. If not, no worries. I'll keep my fork in sync.

Thanks again!