config['base_url'] added
some bugs fixed