some bug fixing (null pointers checking) and name refactoring and status quiring for router and listener