added Socket and XMLSocket support