backport genlock