only build the unlock script if the custom fact is an array