first stage front-end