setup the primitive after adding it to the manager

FIxes #32
Wait for the primitive to actually starts.

Fixes #31.