Got rid of getpiece and iscomplete
msg handler has output