take a stab at supporting version 4
update for version 4
update for version 4