6186 amd 6187 with minor revisions. added arg