maybe set a function wide flag for this?