started adding fin part, generalized segment sending