added local only mode