updated for local psuedo-distributed mode