adding listbyid method
adding consul related changes