add pwd file check