finished demo of primuss API