modified scriptcam for angular use