simplification of code, split between render and audio source