add type hints to remove reflection for submitting to executor