secure FS filename, add ugly workaround for dgrid
do some package cleanup