have something vaguely resembling CAS working