fixed the basic hook scripts