added flag for local