create and get hooks