cleaned up the hooks option - fixes #500