minor fixes and random print statements