improvement in supermin-wrapper code