add codelist download
better error handling
work on assertions