add success condition parsing