panic reimplemented