add config for max number of open sockets
add default limit to cursored reads