edit logcraft.c