changes to use MettleLib
Merge remote-tracking branch 'origin/master'