added more debugging printlns