updated tools to use Magma C3