working again, now to refactor
added fail trigger instead of just crashing