making defclass/ŝtd portable