adding lib file and correcting graceful socket