add tests, flag to show only free domains, internal improvements