added local completion logic