fork of scmutils