[WIP] grunt tasks code redesign