check for current revision before getting attachment