modify memfile and tnt