converted the listener to the new system