adding client-side console log.