removing threading stuff (and tcp-send) from package