prevent duplicate stages from being added