fix printf with threaded parser; replace SUCCESS/FAILURE with bool