speed-up init, support distributed envs