bugfix and remove debugging nslogs