added more error checking to trinity easyblock