getCodes caches
reads from local file