add pwdreplace and openfind functions