fix for standard err check (exists in master)