handle amara errors and api limitations [Closes #167]