fixes to tower encoding