allow optional fourth param to shell for pwd