workaround for thrded stuff