added before* methods
Merge pull request #2 from jordim/master

added before* methods