implement get domain id func
remove unused file