copyright updates and handling of debug mode