style: use dot-notation and new in a few places