listen to two ports simultaneously
minor bug fixed