fix surveys directory handling