add dotfiles support

#492 with whitelist support
I think it might be slower ... but I will do the fix in the evening