actor and adapter factory