bugfixes and improvements to filesystems plugin