add cli.php
Merge branch 'master' into EventHandler
fix for eventhadlers