switched elf args to be pass by ref instead of value