add consts and encrypt utils