classval workaround