now extends thread