put stages before require