grunt api practices