fix success flag and make a grunt plugin