fixed grab_domain bug with filename