small fixes, most notable note field encoding