pass actor to the constructor of Flow