minor simplification of extras
reformat by pycharm
use _.template to format url