added criticals
added imports for the hooks