grunt helper
minor refactor