elf: initial implementation