cleaning up the actor framework