fixes char issue
removed unused methods
socket set up