external: add functions to get storage size