added passwd and setkey support