use parsed object for hook instead of created one to be sure it's validated