hopefully, working mputils code; bug fix 1