actor model refactoring'