add generic throwable catch code