adding max inboundoutbound js changes