fix bugs / now work with debian 7 over web gui