added some logging for testing