fix master not returning new unid
Refactor workthread to listener interface
add assigned status