added printfs to track application progress