moved git hook libs to separate file