support grunt and fix close #594