Opm improvements

http://manage.dimagi.com/default.asp?116271