working on flash socket