addition of default thread handler