clean up: utilize LocalEngine functions instead of reimplementing