ported Dire Maul script from R2 repo