some cleanup work for angular and for grunt