emit this capturing as a first action in the constructor

fixes #329