add some logging, test mode for CI server