add conditional statement so scripts defined by user are not considered