removed cat('here') [was for debugging?]
updated with Lee's comments