improved resource updating