changed debug messages to warn vs print. if used a web service output will be in the logs versus the screen as it was previously.