added sha and debugging