added rotating log
removing debug code