updated hooks to fix potentials with bad keywords