removed flush and added more info about socket