added flashsocket support