refactored for testing trigger issue
better errors for trigger fails