When you reset the  endpoint atom this isn't affect base-url def, that's why it is a function now