moved swg packet stuff to an npm module