add more printlns for debugging purposes