Only shade in needed parts of lib