better handling of pragmas in renderers, added show_trace pragma for easier debugging