fix rc of wrapper script