trying to fix cap 3 compatibility