added initial read write suport for non file based layers