bug in old code,
fetching chars
small fixes