- make bind ip optional
- some cleanup
- prevent errors