server: improved res