copypastad java socket stuff