small changes, main and some debig prints