added cosmos support (v-puzhan)