resolves #334
updates #21
updates #167
updates #298
adds "type" field in runs