added more console log work