make Listener class compatible with sf 2.1