add looping coded in console app, some interfaces
missed at last commit