avoid 'error retrieving current directory'