rewrite connect grunt task