make warning message configurable
remove debug messages