added a generic domain in download function