remove calls to standard fprintf function