remove the exposed layer since we no longer modify it anyway
remove warnings on newer versions of Xcode