move isDistributed to runtime