updated hook scripts with latest implementations of upt