more warning fixes
using ot_term now, and more warning fixes