add configurable tape lengths
sync lang with 1.6