refactors macro compilation
refactors macro runtimes