fixed minor things so build works.