better existing file checking
updated wp module