normalize domain
remove dead code