changes to nothread