adding some debug logic;