adding debug console log for use server side