update to listener.php and add version check to composer.json