naughty auth. spent an hour for this fix
fix for empty dir
initial test
policy changes cause export is wrong