adding hooks lib and creating a server
making this all better