updated specs and code for handling hooks parsing.