reorganise scala class, add tracking mailbox size