added more socket functionality and gestures