add pre-commit like hooks