fixed connection init
fixed eveything. need to test received data