adding some code for debugging. testing on different machines.