only check source/target if it has them