define console if undefined