fix typo in stderr redirection
fix section names
make sure there is an interface section for each interface