all impending errors taken care ofand and some important malloc's freed