bugfix; able to coexist http and commandline interface