rewrite: rename variable to avoid confusion
rewrite: add paste language to json output