added running pre and post commit hooks