hacky shit way of exposing __class field