bugfixes, undefined on fetch, function names