some work on XDG stuff