redoing https://github.com/isi-metaphor/lcc-service/commit/acafa0a6caff507225b4ab357c086639d320ff36