updated autowoot script to use socket for a few things