added api for units
removed graph_style and priority from units