update to 1.7 part 1

biggest commit ever!