added optional type and size arguments to getFileSystem()