implements support for transparency

progress with #30