remove memfile stuff