add logging for testing