fixed gui crash and added defaultStructure writer