sending data, adding thread class, updating frontend