added max open and idle connections quick func