use grunt API more in gruntfile