using resource ensure also in server definition