warning helper
update to use internal warning mechanism
remove double WARNING
concat deprecations and warnings and refactor out of module