continuous improvements to match flash api for byte array and Socket