simplify config and removing refresh and update