cleanup for angular integration