added extra check for scp