fix #166: improve _stage method