added a lot of tritonus code