adds global data and provides better names for structures