more work on fixing lag compensation