added domain and filtering logic; added build sh