ensure resource is available