Twist-lock is code in my town, too, and the cord can't be more than 3' long.