add https functionality to mock backend