log in distributed env