moving await to the Res class