removed consol logging
fix22
fix1,2 and 3 and a few other bugs found while testing the fixes