formatting and callingpres support (bug #4787)