check for tag & depends existence before checking length.... not sure if this is pertinent but it was causing probs for now
added require for job and fixed reference to this