adding support for readonly filesystems