added some logging for testing mostly