added logs for debug purpose