#1387
closed #1390
small fix
#1388
small code style fix
simplified index.php
small fix ConfigManager