added dir creating to cartridge