make cache even when using as lib