add session ids for debug; fix instance range