added file checking to adfly