simulator: read size from the lib