beginning of cryptstuff