adding debuging for base_name exception