smlnj: use resources