fix gem issues related to pointing to cas host