Fixes #51 added aggregate state transistions