slight refactor to account for new ability to use headers etc
Merge pull request #3 from adarqui/master

slight refactor to account for new ability to use headers etc