prompts dirname and Z