moved mcrypt to beginning