added host and port params, channels param parsing