listeners fixes for install process, security issue fix, major fixes found by scrutinizer