more robust section selector