improved persistant_connection + doc