possible fix for thread lock