added lookup mode and st debug string