just a little work version and parameter readed by config file, it can create connection internal