Improve error handling of weighted working groups and change api endpoint Closes #250 See merge request !50