creating a simple socket parser thingy magick