added rebuild to pre-commit hook