more api fixes, blasted unicode
minor style fix