add console code