begin work on writing the actual hook code