use commands instead of environment variable to get user and host name