added imgr lookup and some data sanity checks