misc casting & comments