added passing initialContext to thread implementations