added supp check in sanitize buffer