added some logs and modified log format