updated check for local