made cases robust to pwd