toxencrypt refactor, apparently forgot to add these comments... dunno how