add link function
add variables whoami and logname