update if nesting support, but bug formatting last else