remove some reflection warnings to improve performance