adding mixin to do protected threads