added hook and tests
0.0.2