improved perl and entrylevel matching