added replace indicator in debug stuff