add more log information when something goes wrong