return error strings from API calls and pop up alerts (fixes #98)