some code to actuall deal with transparency (this commit does not even build)