refined domain and link parsing helper functions
smarter link and domain format