fixing errors with future request to domain and marshalling