fix: warnings and object's id is now more reliably fetched

Signed-off-by: Stephen L. <lrq3000@gmail.com>