removed mcrypt dependency