added pre match callback