remade elf opening function
have tried everything to execute elf's but to no avail : (
cleaned code