cosmic_api implementation. work in progress