removed debug couts from sink agent. fixed xml flat loader