Bug fix & add logging blkhash