add output metadata to debug