cleanup
correctly retrieve rendered file