add proper stack level for warning