bugfixes, exception handling, analyze endpoint