improved FlashSocket