add console log snippet