add set current directory and get current directory functions