fix bbc_url and some refactoring